package com.sky.merchant.service.impl;

import com.sky.merchant.domain.ResShop;
import com.sky.merchant.mapper.ResShopMapper;
import com.sky.merchant.service.IResShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResShopServiceImpl implements IResShopService {

    @Autowired
    private ResShopMapper resShopMapper;

    @Override
    public List<ResShop> selectResShopList() {
        return resShopMapper.selectResShopList();
    }

    @Override
    public ResShop selectResShopById( Long id) {
        return resShopMapper.selectResShopById(id);
    }

    @Override
    public int insertResShop(ResShop resShop) {
        return resShopMapper.insertResShop(resShop);
    }

    @Override
    public int updateResShop(ResShop resShop) {
        return resShopMapper.updateResShop(resShop);
    }

    @Override
    public int deleteResShopById(Long id) {
        return resShopMapper.deleteResShopById(id);
    }
}